//
//  NewViewController.m
//  YouWen
//
//  Created by 刘永和 on 15/3/7.
//  Copyright (c) 2015年 刘永和. All rights reserved.
//

#import "NewViewController.h"

@interface NewViewController ()

@end

@implementation NewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor greenColor];
    
    //头条视图
    HeadLineViewController *oneViewController = [[HeadLineViewController alloc] init];
    oneViewController.title = @"头条";
    oneViewController.view.backgroundColor = [UIColor whiteColor];
    
    
    //社会视图
    SocietyViewController *twoViewController = [[SocietyViewController alloc] init];
    twoViewController.title = @"社会";
    twoViewController.view.backgroundColor = [UIColor purpleColor];
    
    
    //奇闻视图
    ThrillingViewController *threeViewController = [[ThrillingViewController alloc] init];
    threeViewController.title = @"奇闻";
    threeViewController.view.backgroundColor = [UIColor orangeColor];
    
    
    //娱乐视图
    
    RecreationViewController *fourViewController = [[RecreationViewController alloc] init];
    fourViewController.title = @"娱乐";
    fourViewController.view.backgroundColor = [UIColor magentaColor];
    
    //体育视图
    
    PEViewController *fiveViewController = [[PEViewController alloc] init];
    fiveViewController.title = @"体育";
    fiveViewController.view.backgroundColor = [UIColor yellowColor];
    
    
    //财经视图
    
    FinanceViewController *sixViewController = [[FinanceViewController alloc] init];
    sixViewController.title = @"财经";
    sixViewController.view.backgroundColor = [UIColor cyanColor];
    
    
    //科技视图
        ScienceViewController *sevenViewController = [[ScienceViewController alloc] init];
        sevenViewController.title = @"科技";
        sevenViewController.view.backgroundColor = [UIColor blueColor];
    
    
    //军事视图
        MilitaryViewController *eightViewController = [[MilitaryViewController alloc] init];
        eightViewController.title = @"军事";
        eightViewController.view.backgroundColor = [UIColor greenColor];
    
    
    //房产视图
        PropertyViewController *ninghtViewController = [[PropertyViewController alloc] init];
        ninghtViewController.title = @"房产";
        ninghtViewController.view.backgroundColor = [UIColor redColor];
    
    SCNavTabBarController *navTabBarController = [[SCNavTabBarController alloc] init];
    navTabBarController.subViewControllers = @[oneViewController,twoViewController,threeViewController,fourViewController,fiveViewController,sixViewController,sevenViewController,eightViewController,ninghtViewController];
    navTabBarController.showArrowButton = YES;
    [navTabBarController addParentController:self];

    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
